package com.wcity.manage.dao.model;

import com.wcity.manage.dao.dal.model.AbstractModel;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by jn on 2016/12/8.
 * 模块实体类
 */
public class Module extends AbstractModel {

    private static final long serialVersionUID = 677120007631888594L;

    private int id;
    private String name;                // 模块名称
    private String url;                 // 模块地址
    private String logo;                // 图标
    private int status;                 // 状态 1上线 2下线
    private int parentId;                  // 父级模块id
    private Module parent;                 // 父级模块

    private List<Module> children = new ArrayList<>();      // 子模块

    private Date createTime;            // 创建时间
    private Date updateTime;            // 更新时间

    public List<Module> getChildren() {
        return children;
    }

    public void setChildren(List<Module> children) {
        this.children = children;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public Module getParent() {
        return parent;
    }

    public void setParent(Module parent) {
        this.parent = parent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
